package game;

import java.awt.Color;

public class TogglePlatform extends ActionPlatform{
	private static final long serialVersionUID = 1L;
	private boolean toggled = false;
	
	public TogglePlatform(Level l, int x, int y, int w, int h, Color c){
		super(l,x,y,w,h,c);
	}
	
	public void update(){
		super.update();
		if(activated){
			if(toggled == false){
				toggleOn();
				toggled = true;
			}else{
				toggleOff();
				toggled = false;
			}
		}
		activated = false;
	}
	
	public void toggleOn(){}
	
	public void toggleOff(){}
}
